package cn.tedu._03vehicle.mapper;

import cn.tedu._03vehicle.pojo.dto.ListQueryId;
import cn.tedu._03vehicle.pojo.dto.VehicleListQuery;
import cn.tedu._03vehicle.pojo.entity.Vehicle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface VehicleMapper {
    int insert(Vehicle vehicle);

    List<Vehicle> getlist(ListQueryId query);

    int delete(@Param("id") Long id,@Param("userId") Long userId);
}
